package com.ting.service;

import com.ting.dao.UserMapper;
import com.ting.pojo.User;

public class UserServiceImpl implements UserService {

    private UserMapper userMapper;

    public void setUserMapper(UserMapper userMapper){
        this.userMapper = userMapper;
    }

    public User loginUser(String username, String password) {
        return userMapper.queryUser(username,password);
    }

    public int addUser(User user) {
        return userMapper.addUser(user);
    }

    public int update(User user) {
        return userMapper.update(user);
    }
}
